package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AftersalesWarehouse;
import com.example.demo.repository.AftersalesWarehouseRepository;
@Service
public class AftersalesWarehouseService extends BaseService<AftersalesWarehouse,Integer>{
	@Autowired
	private AftersalesWarehouseRepository aftersalesWarehouseDAO;
	
	public List<AftersalesWarehouse> findByEnterwarehouse(String enter){
		return aftersalesWarehouseDAO.findByEnterwarehouse(enter);
	}
	public List<AftersalesWarehouse> findByComeparts(String leix){
		return aftersalesWarehouseDAO.findByComeparts(leix);
	}
}
